// 初始化按钮状态

export default function updateButtonStatus() {
    const {pk_conmodel,editting} = this.state;

    this.props.button.setButtonDisabled({
        add: false,
        edit: !pk_conmodel,
        delete: false,
        copy: false,
        refresh: false,
        templateSetting: false,
        file: false,
        export: false,
        print: false
    });
    this.props.button.setButtonVisible({
        copy: !editting,
        templateSetting: !editting,
        more: !editting,
        add_body: editting
    });
}
